package hu;

import java.util.*;

public class student_2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] ss = sc.nextLine().split(",");
        int m = Integer.parseInt(ss[0]);
        int n = Integer.parseInt(ss[1]);
        char[][] student = new char[m][n];
        for (int i = 0; i < m; i++) {
            String[] str = sc.nextLine().split(",");
            for (int j = 0; j < n; j++) {
                student[i][j] = str[j].charAt(0);
            }
        }

    }
}
